import request from '@/utils/request'

export function realDataWeather(query) {
  return request({
    url: '/basic/hisMain/realDataWeather',
    method: 'get',
    params: query
  })
}

export function queryMoreParam(query) {
  return request({
    url: '/basic/hisMain/moreParam',
    method: 'get',
    params: query,
    timeout: 1000*30
  })
}

export function querySingleParam(query) {
  return request({
    url: '/basic/hisMain/singleParam',
    method: 'get',
    params: query,
    timeout: 1000*30
  })
}

export function queryRealOri(query) {
  return request({
    url: '/basic/hisMain/realOri',
    method: 'get',
    params: query
  })
}

export function queryRealData(query) {
  return request({
    url: '/basic/hisMain/realData',
    method: 'get',
    params: query
  })
}

export function queryRealDatas(query) {
  return request({
    url: '/basic/hisMain/realDataList',
    method: 'get',
    params: query
  })
}

// 查询历史数据main列表
export function listHisMain(query) {
  return request({
    url: '/basic/hisMain/list',
    method: 'get',
    params: query
  })
}

// 查询历史数据main详细
export function getHisMain(id) {
  return request({
    url: '/basic/hisMain/' + id,
    method: 'get'
  })
}

// 新增历史数据main
export function addHisMain(data) {
  return request({
    url: '/basic/hisMain',
    method: 'post',
    data: data
  })
}

// 修改历史数据main
export function updateHisMain(data) {
  return request({
    url: '/basic/hisMain',
    method: 'put',
    data: data
  })
}

// 删除历史数据main
export function delHisMain(id) {
  return request({
    url: '/basic/hisMain/' + id,
    method: 'delete'
  })
}

// 导出历史数据main
export function exportHisMain(query) {
  return request({
    url: '/basic/hisMain/export',
    method: 'get',
    params: query
  })
}
